import request from '@/axios'
import type { ConfigItem } from '../types'

// 详情配置接口 - 修改为通过Key获取
export const getConfigDetailByKey = (key: string) => {
  return request.get<{ code: number; message: string; data: ConfigItem }>({
    url: `/config/getByKey/${key}`
  })
}
